package com.service;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class BaseService {
    Connection conn = null;

    public BaseService() throws SQLException{
            conn =
                    DriverManager.getConnection("jdbc:mysql://localhost:3306/gao" +
                            "?user=root&password=qwer1234&characterEncoding=utf8&serverTimezone=UTC");
    }

    public Connection getConn() {
        return conn;
    }
}
